package com.self.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.self.member.mapper.UserAuthAuditRecordMapper;
import com.self.member.model.UserAuthAuditRecord;
import com.self.member.service.UserAuthAuditRecordService;
import org.springframework.stereotype.Service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

@Service
public class UserAuthAuditRecordServiceImpl extends ServiceImpl<UserAuthAuditRecordMapper, UserAuthAuditRecord> implements UserAuthAuditRecordService {

    @Override
    public List<UserAuthAuditRecord> getAuthAuditRecordList(Long id) {
        return list(new LambdaQueryWrapper<UserAuthAuditRecord>().eq(id != null,UserAuthAuditRecord::getUserId,id));
    }
}
